package com.tianyalei.wolf.sample.view.dialoganim;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;
import com.tianyalei.wolf.sample.view.BaseEffects;

/**
 * Created by lee on 2014/7/31.
 */
public class Fall extends BaseEffects {

    @Override
    protected void setupAnimation(View view) {
        getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "scaleX", 2, 1.5f, 1).setDuration(mDuration),
                ObjectAnimator.ofFloat(view, "scaleY", 2, 1.5f, 1).setDuration(mDuration),
                ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(mDuration * 3 / 2)

        );
    }
}
